﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Backend/AdminLayout.master" AutoEventWireup="true" CodeFile="Add.aspx.cs" Inherits="Backend_Category_Add" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="AdminElegantFood" Runat="Server">
	<div class="panel-heading">
		<h3 class="panel-title">
			<span class="glyphicon glyphicon-folder-close"></span>បញ្ចូលម្ហូបថ្មី
		</h3>
	</div>
	<div class="panel-body">
		<div class="btn-toolbar" role="toolbar">
			<asp:HyperLink ID="Cancel" runat="server" CssClass="btn btn-danger" Text="ត្រឡប់ក្រោយ"
				ToolTip="ត្រឡប់ក្រោយ" NavigateUrl="Backend/Product/Default.aspx" />
			<asp:Button ID="Save" runat="server" CssClass="btn btn-info" Text="រក្សាទុក" ToolTip="រក្សាទុក"
				OnClick="Save_Click" />
		</div>
		<div class="col-md-6 ef-col-left">
			<asp:Label ID="displayError" runat="server" />
			<div class="panel panel-default">
				<div class="panel-heading">
					<h4 class="panel-title">ព័ត៌មានពីម្ហូប</h4>
				</div>
				<div class="panel-body">
					<div class="form-group">
						<asp:Label ID="NameLabel" runat="server" AssociatedControlID="Name">ឈ្មោះម្ហូប<span class="ef-required">*</span></asp:Label>
						<asp:RequiredFieldValidator ID="NameRequired" runat="server" ErrorMessage="ឈ្មោះត្រូវតែបញ្ចូល!"
							CssClass="ef-required" ControlToValidate="Name" />
						<asp:TextBox ID="Name" runat="server" CssClass="form-control" pattern=".{5,150}"
							ToolTip="Allow enter 3 to 150 characters" />
						<asp:Label ID="DisplayNameError" runat="server" CssClass="help-block ef-required" />
					</div>
					<div class="form-group">
						<asp:Label ID="PriceLable" runat="server" AssociatedControlID="Price">តម្លៃ<span class="ef-required">*</span></asp:Label>
						<asp:RequiredFieldValidator ID="PriceRequired" runat="server" ErrorMessage="តម្លៃត្រូវតែបញ្ចូល!"
							CssClass="ef-required" ControlToValidate="Price" />
						<asp:TextBox ID="Price" runat="server" pattern=".{1,3}" ToolTip="Allow enter 1 to 3 character(s)"
							CssClass="form-control" />
					</div>
					<div class="form-group">
						<asp:Label ID="SpecialPriceLabel" runat="server" AssociatedControlID="Price">តម្លៃលក់ពិសេស<span class="ef-required">*</span></asp:Label>
						<asp:TextBox ID="SpecialPrice" runat="server" pattern=".{1,3}" ToolTip="Allow enter 1 to 3 character(s)"
							CssClass="form-control" />
					</div>
					<div class="form-group">
						<asp:Label ID="ImageLabel" runat="server" AssociatedControlID="Image">រូបភាព<span class="ef-required">*</span></asp:Label>
						<asp:RequiredFieldValidator ID="ImageRequired" runat="server" ErrorMessage="រូបភាពត្រូវតែបញ្ចូល!"
							CssClass="ef-required" ControlToValidate="Image" />
						<asp:FileUpload runat="server" ID="Image" CssClass="form-control" />
						<asp:Label ID="DisplayUploadError" runat="server" CssClass="help-block ef-required" />
					</div>
					<div class="form-group">
						<asp:Label ID="DescriptionLabel" runat="server" AssociatedControlID="Description">សេចក្ដីពិពណ៌នា<span class="ef-required">*</span></asp:Label>
						<asp:RequiredFieldValidator ID="DescriptionRequired" runat="server" ErrorMessage="សេចក្ដីពិពណ៌នាត្រូវតែបំពេញ!"
							CssClass="ef-required" ControlToValidate="Description" />
						<asp:TextBox ID="Description" runat="server" CssClass="form-control" TextMode="MultiLine"
							Rows="5" />
					</div>
				</div>
			</div>
		</div>
		<div class="col-md-6 ef-col-right">
			<div class="panel panel-default">
				<div class="panel-heading">
					<h4 class="panel-title">ការកំណត់</h4>
				</div>
				<div class="panel-body">
					<div class="form-group">
						<asp:Label ID="CategoryLabel" runat="server" AssociatedControlID="Category" Text="ជ្រើសរើសប្រភេទម្ហូប (អាចរើសបានច្រើន)" />
						<asp:ListBox ID="Category" runat="server" SelectionMode="Multiple" CssClass="form-control">
						</asp:ListBox>
					</div>
					<div class="form-group">
						<div class="checkbox">
							<asp:CheckBox ID="HightLight" runat="server" />
							<asp:Label ID="HightLightLabel" AssociatedControlID="HightLight" runat="server" Text="ដាក់នៅទំព័រមុខ" />
						</div>
					</div>
					<div class="form-group">
						<div class="checkbox">
							<asp:CheckBox ID="Promotion" runat="server" />
							<asp:Label ID="PromotionLabel" AssociatedControlID="Promotion" runat="server" Text="លក់ក្នុងតម្លៃពិសេស" />
						</div>
					</div>
					<div class="form-group">
						<div class="checkbox">
							<asp:CheckBox ID="Status" runat="server" />
							<asp:Label ID="StatusLabel" AssociatedControlID="Status" runat="server" Text="ដាក់បង្ហាញ" />
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</asp:Content>